package cn.tedu.csmall.passport.pojo.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Api
@Data
public class AdminAddNewDTO {
    @ApiModelProperty(value ="管理员名称",required = true)
    @NotNull(message = "添加管理员失败,必须有管理员名字")
    private String username;
    @ApiModelProperty(value ="管理员密码",required = true)
    @NotNull(message = "添加管理员失败,必须有管理员密码")
    private String password;
    @ApiModelProperty(value ="管理员昵称",required = true)
    @NotNull(message = "添加管理员失败,必须有管理员昵称")
    private String nickname;
    @ApiModelProperty(value ="管理员头像",required = true)
    private String avatar;
    @ApiModelProperty(value ="手机号",required = true)
    @NotNull(message = "添加管理员失败,必须有手机号")
    private String phone;
    @ApiModelProperty(value ="邮箱",required = true)
    @NotNull(message = "添加管理员失败,必须有邮箱")
    private String email;
    @ApiModelProperty(value ="介绍",required = true)
    private String description;
    @ApiModelProperty(value ="是否启用",required = true)
    private Integer enable;
    @ApiModelProperty(value ="角色id数组",required = true)
    private Long[] roleIds;
}
